home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #11
/
Amiga Plus CD - 2004 - No. 11.iso
/
AmiSoft
/
Biz
/
swood
/
FW_Scripts.lha
/
FW_Scripts
/
Adjust_VGA.rexx
next >
Wrap
OS/2 REXX Batch file
|
2004-02-28
|
1KB
|
62 lines
/* ================================================================ */
/* Adjusts width/height in VGA graphics to obtain correct printing. */
/* FinalWriter macro written by José Manuel Herrero de Aldana. */
/* Spain jmherreros@cop.es */
/* $VER: VGA_Adjust 2.0 eng. (26/1/97) */
/* ================================================================ */
Options Results
ShowMessage 1 0 '"Select type of transformation, please" "" "" " Cancel " " Shorter " " Wider "'
respuesta = Result
GetDocItemPrefs Decimal
Decimales = Result
DocItemPrefs Decimal period
I = 0
X = 0
FirstObject Selected
If ( Result = 0 ) Then Call Fin
Do While Result ~= 0; I = I + 1
Objects.I = Result
NextObject Objects.I Selected
End
Do While X < I; X = X + 1
GetObjectType Objects.X
ObjType = Result
GetObjectCoords Objects.X
Coords = Result
Parse Var Coords Page x1 y1 x2 y2
If ObjType = 1 Then
Do
If respuesta == 1 Then Call Fin
If respuesta == 2 Then y2=y2*0.8475
If respuesta == 3 Then x2=x2*1.18
SetObjectCoords Objects.X Page x1 y1 x2 y2
End
End
X = 0
Do While X < I; X = X + 1
SelectObject Objects.X Multiple
End
Redraw
Call Fin
Proc Fin:
DocItemPrefs Decimal Decimales
Exit